﻿using System;
namespace Calculater
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b;
            Console.WriteLine("Please input an integer number :");
            string s =Console.ReadLine(); 
            a=int.Parse(s);
            Console.WriteLine("Please input an integer number agian:");
            s= Console.ReadLine(); 
            b=int.Parse(s);

            Console.Write("Choose an operator:\n" +
                "1: add +\n" +
                "2:sub -\n" +
                "3:mul *\n" +
                "4:div / \n");
            int num;
            s= Console.ReadLine();
            num=int.Parse(s);
            int result;
            switch (num)
                {
                    case 1: result = a+b; break;
                    case 2: result = a-b; break;   
                    case 3: result = a*b; break;
                    case 4: result = a/b; break;
                default:Console.WriteLine("bad result");return;
            }
            Console.WriteLine("result is {0}",result);
        }
    }
}
